package com.vancouver.knows.business.tracker;

import com.pangu.task.IResultReceiver;
import com.pangu.task.OperateResult;
import com.vancouver.knows.business.BusinessModule;
import com.vancouver.knows.business.Constants;
import com.vancouver.knows.business.bean.VersionInfo;
/**
 * 获取版本更新列表
 *
 * @author llf
 *
 */
public class VersionInfoTracker extends ABInvokeTracker {

	public VersionInfoTracker(BusinessModule module, IResultReceiver resultReceiver) {
		super(module, resultReceiver);
	}

	@Override
	public String TAG() {
		return VersionInfoTracker.class.getSimpleName();
	}

	@Override
	public void handleResult(OperateResult result) {

		VersionInfo versionInfo = (VersionInfo) result.getResultData();
		if (versionInfo == null) return;
		module.getCacheManager().setVersionInfoCache(versionInfo);
		//imContext.handleMobEmptyMessage(Constants.UPDATE_VERSION_COMMENT);
	}



}
